﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace ExamServer.Migrations
{
    public partial class removeoptions : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "tbUsers",
                keyColumn: "Id",
                keyValue: new Guid("31c40f8c-07ab-47c1-b56c-e5d4d28b08df"));

            migrationBuilder.DeleteData(
                table: "tbUsers",
                keyColumn: "Id",
                keyValue: new Guid("a958c0ef-5efe-4358-8136-26ef251180a7"));

            migrationBuilder.DropColumn(
                name: "Options",
                table: "tbUsers");

            migrationBuilder.InsertData(
                table: "tbUsers",
                columns: new[] { "Id", "Birthday", "Email", "Name", "Password", "Remark" },
                values: new object[] { new Guid("a15efdd2-cf70-48f3-85b2-073bb39cdfbb"), "1990-01-01", "zhangsan@163.com", "张三", "123456", null });

            migrationBuilder.InsertData(
                table: "tbUsers",
                columns: new[] { "Id", "Birthday", "Email", "Name", "Password", "Remark" },
                values: new object[] { new Guid("a26959e2-bdd4-4f31-a503-3f3e22781969"), "1992-01-01", "lisi@qq.com", "李四", "123456", null });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "tbUsers",
                keyColumn: "Id",
                keyValue: new Guid("a15efdd2-cf70-48f3-85b2-073bb39cdfbb"));

            migrationBuilder.DeleteData(
                table: "tbUsers",
                keyColumn: "Id",
                keyValue: new Guid("a26959e2-bdd4-4f31-a503-3f3e22781969"));

            migrationBuilder.AddColumn<string>(
                name: "Options",
                table: "tbUsers",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.InsertData(
                table: "tbUsers",
                columns: new[] { "Id", "Birthday", "Email", "Name", "Options", "Password", "Remark" },
                values: new object[] { new Guid("a958c0ef-5efe-4358-8136-26ef251180a7"), "1990-01-01", "zhangsan@163.com", "张三", null, "123456", null });

            migrationBuilder.InsertData(
                table: "tbUsers",
                columns: new[] { "Id", "Birthday", "Email", "Name", "Options", "Password", "Remark" },
                values: new object[] { new Guid("31c40f8c-07ab-47c1-b56c-e5d4d28b08df"), "1992-01-01", "lisi@qq.com", "李四", null, "123456", null });
        }
    }
}
